package card;

import effect.Effect;
import effect.EffectUtil;
import effect.Effect.EffectType;


public class LandCard extends Card {
	
	protected int goldIncome;
	protected int manaIncome;

	public LandCard(String name, String desc, String iB, String iS, String iC,int gC, int mC) {
		super(name, desc, iB, iS, iC, gC, mC);
	
	}
	
	public LandCard(){
		super();
	}
	
	public int getGoldIncome(){
		int returnedIncome = goldIncome;
		for(Effect e : EffectUtil.getSubList(effects, EffectType.goldModifier))
			returnedIncome += e.getAddedGold(goldIncome);
		return returnedIncome;
	}
	
	public int getManaIncome(){
		int returnedIncome = manaIncome;
		for(Effect e : EffectUtil.getSubList(effects, EffectType.manaModifier))
			returnedIncome += e.getAddedMana(manaIncome);
		return returnedIncome;
	}
	
}
